import request from '@/utils/request'

// 查询食谱标签管理列表
export function listCookbooktype(query) {
  return request({
    url: '/cookbooktype/cookbooktype/list',
    method: 'get',
    params: query
  })
}

// 查询食谱标签管理详细
export function getCookbooktype(id) {
  return request({
    url: '/cookbooktype/cookbooktype/' + id,
    method: 'get'
  })
}

// 新增食谱标签管理
export function addCookbooktype(data) {
  return request({
    url: '/cookbooktype/cookbooktype',
    method: 'post',
    data: data
  })
}

// 修改食谱标签管理
export function updateCookbooktype(data) {
  return request({
    url: '/cookbooktype/cookbooktype',
    method: 'put',
    data: data
  })
}

// 删除食谱标签管理
export function delCookbooktype(id) {
  return request({
    url: '/cookbooktype/cookbooktype/' + id,
    method: 'delete'
  })
}
